#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;

int main()
{
	int t;
	cin >> t;
	while (t--)
	{
		int n;
		cin >> n;
		int a = 0, b = 0;
		for (int i = 1; i <= n; i++)
		{
			int x;
			cin >> x;
			if (x == 1) a++;
			else if (x == 2) b++;
			else if (x == 3)
			{
				a++;
				b++;
			}
			else if (x == 4)
			{
				a--;
				b--;
			}
		}
		if (a > b) cout << "Kobayashi" << endl;
		else if (a < b) cout << "Tohru" << endl;
		else cout << "Draw" << endl;
	}
	return 0;
}